package cn.itcast.ssm.mapper;

import cn.itcast.ssm.po.Greenhouse;
import cn.itcast.ssm.po.GreenhouseExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GreenhouseMapper {
    long countByExample(GreenhouseExample example);

    int deleteByExample(GreenhouseExample example);

    int deleteByPrimaryKey(Integer greenhouseId);

    int insert(Greenhouse record);

    int insertSelective(Greenhouse record);

    List<Greenhouse> selectByExample(GreenhouseExample example);

    Greenhouse selectByPrimaryKey(Integer greenhouseId);

    int updateByExampleSelective(@Param("record") Greenhouse record, @Param("example") GreenhouseExample example);

    int updateByExample(@Param("record") Greenhouse record, @Param("example") GreenhouseExample example);

    int updateByPrimaryKeySelective(Greenhouse record);

    int updateByPrimaryKey(Greenhouse record);
}